package com.cn.dao;

import com.cn.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysNoticeDao {
    /**查询公告*/
    List<SysNotice> selectNotices(SysNotice notice);

    /**基于id查询*/
    @Select("select *  from sys_notice where id=#{id}")
    SysNotice selectById(Long id);
    /**修改公告*/
    int updateNotice(SysNotice notice);
    /**新增公告*/
    int insertNotice(SysNotice notice);
    /**删除公告*/
    int deleteById(Long... id);
}
